﻿using Admin.Application.Dto;
using Admin.Database.Model;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Admin.Application.DynamicApi.System.Org.Dto
{
	public class OrgInput : BaseIdInput
	{
		/// <summary>
		/// 名称
		/// </summary>
		public string Name { get; set; }

		/// <summary>
		/// 编码
		/// </summary>
		public string Code { get; set; }

		/// <summary>
		/// 机构类型
		/// </summary>
		public string Type { get; set; }

		/// <summary>
		/// 租户Id
		/// </summary>
		public long TenantId { get; set; }
	}

	public class AddOrgInput : SysOrg
	{
		/// <summary>
		/// 名称
		/// </summary>
		[Required(ErrorMessage = "机构名称不能为空")]
		public override string Name { get; set; }
	}

	public class UpdateOrgInput : AddOrgInput
	{
	}

	public class DeleteOrgInput : BaseIdInput
	{
	}
}
